package com.sihan.swvp.dao.sys;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.sihan.swvp.dao.BaseDao;


public interface SyncDao extends BaseDao{

	public Map<String, Object> getLastSyncTime(@Param("jobid")String jobid);
	
	public void updateSyncTime(@Param("jobid")String jobid,@Param("synctime")Date synctime,@Param("sttime")Date sttime,@Param("syncmsg")String msg);
	
	public void deleteSyncTime(@Param("jobid")String jobid);

	public void exeInsert(@Param("table")String table, @Param("fields")String[] fields, @Param("values")Object[] values,@Param("params")Map<String,Object> params);
	
	public void exeUpdate(@Param("table")String table, @Param("fieldValeus")Map<String,Object> fieldValeus,@Param("params")Map<String,Object> params);
	
	public List<Map<String,Object>> exeSelection(@Param("table")String table, @Param("fields")String[] fields,@Param("params")Map<String,Object> params);

}
